package com.whsr.readservice.service;

import com.whsr.readservice.dao.UserInfoMapper;
import com.whsr.readservice.vo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("userService")
@Transactional
public class UserService {

    private final UserInfoMapper userInfoMapper;

    @Autowired
    public UserService(UserInfoMapper userInfoMapper) {
        this.userInfoMapper = userInfoMapper;
    }

    public List<UserInfo> findAllUser() {
        return userInfoMapper.selectAllDsUser();
    }
}
